﻿namespace HBFramework
{
    /// <summary>
    /// 对象池元素接口
    /// </summary>
    public interface IObjectPoolItem
    {
        /// <summary>
        /// 创建时
        /// </summary>
        public void OnCreate(params object[] args);
        /// <summary>
        /// 租用前
        /// </summary>
        public void OnRent(params object[] args);
        /// <summary>
        /// 回收前
        /// </summary>
        public void OnRecycle();
        /// <summary>
        /// 清理时
        /// </summary>
        public void OnRelease();
    }
}